Skip to content

rules: consolidate duplicate match patterns in closeCollector#18587

Merged
anacrolix merged 1 commit intoerigontech:mainfrom
maximevtush:patch-5
Jan 19, 2026
Merged

rules: consolidate duplicate match patterns in closeCollector#18587
anacrolix merged 1 commit intoerigontech:mainfrom
maximevtush:patch-5

Conversation

@maximevtush
Copy link
Contributor

The closeCollector function had two separate m.Match() calls with identical Where() and Report() clauses, differing only by the pattern template. This duplication risks inconsistent rule updates in the future.

Copy link
Contributor

@anacrolix anacrolix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct. Odd using Go for DSLs.

@anacrolix anacrolix merged commit 4cbed89 into erigontech:main Jan 19, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants